import { createApp } from "vue";
import App from "./App.vue";
import TsShop from "./TsShop.vue";
import TsUser from "./TsUser.vue";

// 创建vue应用，new Vue()
const app = createApp(App);
// 冗余
app.component("TsShop", TsShop);
// .component("TsUser", TsUser)
// .component("TsUser", TsUser)
// .component("TsUser", TsUser);

// 全局捕捉，托底
// app.config.errorHandler = (err) => {
//   /*处理错误*/
//   console.log(err);
// };
app.mount("#app");
